package com.itheima.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * 创建时间：2020-08-22-10:52 xiaotian(●'◡'●))
 * 类说明：
 * 类注解：
 */
public class OrderSetting implements Serializable {

    private Date orderDate;  //约预日期
    private int number;  //可预约人数
    private int reservations; // 已预约人数

    public OrderSetting(Date orderDate, int number) {
        this.orderDate = orderDate;
        this.number = number;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("OrderSetting{");
        sb.append("orderDate=").append(orderDate);
        sb.append(", number=").append(number);
        sb.append(", reservations=").append(reservations);
        sb.append('}');
        return sb.toString();
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public OrderSetting setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
        return this;
    }

    public int getNumber() {
        return number;
    }

    public OrderSetting setNumber(int number) {
        this.number = number;
        return this;
    }

    public int getReservations() {
        return reservations;
    }

    public OrderSetting setReservations(int reservations) {
        this.reservations = reservations;
        return this;
    }

    public OrderSetting(Date orderDate, int number, int reservations) {
        this.orderDate = orderDate;
        this.number = number;
        this.reservations = reservations;
    }

    public OrderSetting() {
    }
}
